Skip to content

Add default-off standalone diagnostic outbox host - #553

Draft
JusterZhu wants to merge 1 commit into
justerzhu-diagnostic-outbox-consumerfrom
justerzhu-diagnostic-outbox-host
Draft

JusterZhu wants to merge 1 commit into
justerzhu-diagnostic-outbox-consumerfrom
justerzhu-diagnostic-outbox-host

Conversation

@JusterZhu

@JusterZhu JusterZhu commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add an opt-in standalone .NET 10 host that immediately replays Bowl protocol-1 cases and scans/retries periodically, outside the upgrade lifecycle.
  • Expose per-case errors, deferred outcomes, cancellation, and confirmed tombstone cleanup; retain stripe locks and persisted snapshots.
  • Keep tenant/app key/HTTPS endpoint explicit and trusted; do not infer or transmit RecordId/RecordType because no durable trusted case-to-attempt binding exists. Document that outboxes requiring attempt association must remain disabled until a trustworthy first-send binding and consumer validation exist.
  • Add focused scheduler, retry, cancellation, safety, and compatibility tests; extend CI to publish/run the standalone host as Native AOT on Windows and Linux.

Validation

  • dotnet test tests\CoreTest\CoreTest.csproj -c Release --filter FullyQualifiedName~Diagnostics: 43 passed.
  • dotnet build src\GeneralUpdate.Core\GeneralUpdate.Core.csproj -c Release: passed for netstandard2.0/net8.0/net10.0.
  • dotnet run --project tests\OutboxAotSmoke\OutboxAotSmoke.csproj -c Release -p:PublishAot=false: passed.
  • GeneralUpdate Actions run 45113539301: Windows and Linux passed, including Native AOT publish/run.
  • Local Native AOT publish could not run because this Windows environment lacks the Visual C++ Desktop Development linker; the Windows/Linux CI jobs provide that validation.

Real host-to-service integration

The existing TSLH-Technology/GeneralSpace#336 integration now pins this host commit f1618368d4763f91629705e2d03fd59b26f30379 (parent #545 c1d9eb1b468cd7ed818b157be044c923ce2d220c) together with Bowl writer fixture e5b0871239867de4d0038febd5af91ff75d2cf6e and the pinned GeneralSpace API/client revisions. The successful host-enabled run is 45114724309, on GeneralSpace PR head 3a5b552a57e01af0bae3305da10a842f99b45c1d.

Using the real Bowl PublishEvidence fixture, the test starts this standalone host while the API is offline. The startup scan reports HttpRequestException and retains the case and persisted ZIP. After the API and tenant are initialized, a periodic scan uploads over HTTPS; the host emits ConfirmedAndDeleted and the case is removed. MySQL contains exactly one artifact with the expected tenant/AppKey and matching stored ZIP bytes; RecordType, RecordId, and FaultId are all null. No record association is inferred or sent. The source-revision check verifies the pinned host SHA and its #545 parent.

This integration uses a real Bowl writer fixture, not a complete watchdog/crash-dump test: it does not prove watchdog launch, dump capture/correctness, or automatic upgrade recovery. This service integration is managed .NET 10, not AOT; Native AOT is covered separately by the GeneralUpdate CI run above.

Stacked on #545 (c1d9eb1b468cd7ed818b157be044c923ce2d220c).

Replay cooperative cases on startup, retry scans independently of upgrades, and expose cancellation and errors without inferred attempt association.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant